import {layer} from "@layui/layer-vue";
import {reactive} from "vue";

export const viewSql = (data: any) => {
  const params = reactive({execute_id: data.id});
  console.log('view sql :', data, params)
  // router.push({name: 'viewSqlRecord', params: params});
  const target_url = '/#/sqlRecord/' + data.id;
  layer.open({
      type: "iframe",
      title: "查看SQL语句执行记录",
      area: ['80%','80%'],
      content: target_url,
  })
}